<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="hyl.ext.base.MySession,com.servlet.My"%>
<%

MySession ss = My.getSession(request,response);
int role = ss.getRoleid();
//String quanxian=M.MRole.get(role);
String quanxian=ss.tag.get("quanxian").toString();
//System.out.println(quanxian);
String style = "";
%>
<script src="<%=basePath%>js/fun.js"></script>
<script>

</script>
<body class="no-skin">
	<div id="navbar" class="navbar navbar-default ace-save-state"
		style="height: 50px">
		<!-- 头部  栏 bar -->
		<div class="navbar-container ace-save-state" id="navbar-container">
			<button type="button" class="navbar-toggle menu-toggler pull-left"
				id="menu-toggler" data-target="#sidebar">
				<span class="sr-only">Toggle sidebar</span> <span class="icon-bar"></span>
				<span class="icon-bar"></span> <span class="icon-bar"></span>
			</button>
			<div class="navbar-header pull-left">
				<a href="javascript:void" class="navbar-brand"> <small>
						<%-- <img src="<%=basePath%>img/logo.png" width=30px height=30px> --%> <%=SYSTEMNAME%>
				</small>
				</a>
			</div>
			<div class="navbar-buttons navbar-header pull-right"
				role="navigation">
				<ul class="nav ace-nav">
					<li class="light-blue dropdown-modal"><a
						data-toggle="dropdown" href="#" class="dropdown-toggle"> <img
							class="nav-user-photo"
							src="<%=basePath%>assets/images/avatars/user.jpg"
							alt="Jason's Photo" /> <span class="user-info"> <small>欢迎回来，</small><%=ss.get别名() %>
							
						</span> <i class="ace-icon fa fa-caret-down"></i>
					</a>
						<ul
							class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
							<!-- <li>
							<a href="#">
								<i class="ace-icon fa fa-cog"></i>
								设置
							</a>
						</li>
						<li>
							<a href="info.jsp">
								<i class="ace-icon fa fa-user"></i>
								个人信息
							</a>
						</li> -->
							<li class="divider"></li>
							<li><a href="javascript:void" onclick="logout()"> <i
									class="ace-icon fa fa-power-off"></i> 注销
							</a></li>
						</ul></li>
				</ul>
			</div>
		</div>
	</div>
	<script>
		function logout() {
			window.sessionStorage.clear();
			window.location.href = "<%=basePath%>ex/quit.html";
		}
	</script>
	<!-- 左侧  菜单 -->
	<div class="main-container ace-save-state" id="main-container">
		<div id="sidebar" class="sidebar responsive ace-save-state">
			<!-- 左侧  菜单 顶部4个小按钮-->
			<div class="sidebar-shortcuts" id="sidebar-shortcuts">
				<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
					<button class="btn btn-success">
						<i class="ace-icon fa fa-signal"></i>
					</button>
					<button class="btn btn-info">
						<i class="ace-icon fa fa-pencil"></i>
					</button>
					<button class="btn btn-warning">
						<i class="ace-icon fa fa-users"></i>
					</button>
					<button class="btn btn-danger">
						<i class="ace-icon fa fa-cogs"></i>
					</button>
				</div>
				<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
					<span class="btn btn-success"></span> <span class="btn btn-info"></span>
					<span class="btn btn-warning"></span> <span class="btn btn-danger"></span>
				</div>
			</div>
			<!-- 左侧 展开  菜单 -->
			<ul class="nav nav-list">
				<li class="active open main"><a href="javascript:void"> <i
						class="menu-icon fa fa-tachometer"></i> <span class="menu-text">主页</span>
				</a> <b class="arrow"></b></li>
				<li class=" "><a href="#" class="dropdown-toggle">
						<i class="menu-icon fa fa-pencil"></i> <span class="menu-text">
							用户管理</span> <b class="arrow fa fa-angle-down"></b>
				</a> <b class="arrow"></b>
					<ul class="submenu">
				  		<%-- <%
							if (quanxian.contains("注册用户,")) {
						%>
						<li <%=style%>><a href="javascript:void"
							data-href="member_add.jsp"> <i
								class="menu-icon fa fa-caret-right"></i> 注册用户
						</a> <b class="arrow"></b></li>
						<%
							}
						%> --%>
						<%
							if (quanxian.contains("用户管理,")) {
						%>
						<li <%=style%>><a href="javascript:void"
							data-href="member.jsp"> <i
								class="menu-icon fa fa-caret-right"></i> 用户管理
						</a> <b class="arrow"></b></li>
						<%
							}
						%>
					</ul></li>
				<li class=" "><a href="#" class="dropdown-toggle">
						<i class="menu-icon fa fa-pencil"></i> <span class="menu-text">
							第三方应用管理</span> <b class="arrow fa fa-angle-down"></b>
				</a> <b class="arrow"></b>
					<ul class="submenu">
				  		<%
							if (quanxian.contains("添加应用,")) {
						%>
						<li <%=style%>><a href="javascript:void"
							data-href="app_add.jsp"> <i
								class="menu-icon fa fa-caret-right"></i> 添加应用
						</a> <b class="arrow"></b></li>
						<%
							
							}
						%>
						<%
							if (quanxian.contains("应用管理,")) {
						%>
						<li <%=style%>><a href="javascript:void"
							data-href="app.jsp"> <i
								class="menu-icon fa fa-caret-right"></i> 应用管理
						</a> <b class="arrow"></b></li>
						<%
							}
						%>
					</ul></li>
				<li class=" "><a href="#" class="dropdown-toggle">
						<i class="menu-icon fa fa-list-alt"></i> <span class="menu-text">系统设置</span>
						<b class="arrow fa fa-angle-down"></b>
				</a> <b class="arrow"></b>
					<ul class="submenu">
						<%
							if (quanxian.contains("修改密码,")) {
						%>
						<li <%=style%>><a href="javascript:void"
							data-href="member-password.jsp"> <i
								class="menu-icon fa fa-caret-right"></i> 修改登录密码
						</a> <b class="arrow"></b></li>
						<%
							}
						%>
						<%-- <%
							if (quanxian.contains("修改密码,")) {
						%>
						<li <%=style%>><a href="javascript:void"
							data-href="member-passopen.jsp"> <i
								class="menu-icon fa fa-caret-right"></i> 修改交易密码
						</a> <b class="arrow"></b></li>
						<%
							}
						%>  --%>
			        	<%
							if (quanxian.contains("新闻管理,")) {
						%>
						<li <%=style%>><a href="javascript:void"
							data-href="network-flow.jsp"> <i
								class="menu-icon fa fa-caret-right"></i> 新闻管理
						</a> <b class="arrow"></b></li>
						<%
							}
						%>
						<%
							if (quanxian.contains("视频发布,")) {
						%>
						<li <%=style%>><a href="javascript:void"
							data-href="video.jsp"> <i
								class="menu-icon fa fa-caret-right"></i> 视频发布
						</a> <b class="arrow"></b></li>
						<%
							}
						%>
						<%
							if (quanxian.contains("用户动态,")) {
						%>
						<li <%=style%>><a href="javascript:void"
							data-href="dynamicsh.jsp"> <i
								class="menu-icon fa fa-caret-right"></i> 用户动态审核
						</a> <b class="arrow"></b></li>
						<%
							}
						%>
						<%
							if (quanxian.contains("用户动态,")) {
						%>
						<li <%=style%>><a href="javascript:void"
							data-href="dynamic.jsp"> <i
								class="menu-icon fa fa-caret-right"></i> 用户动态
						</a> <b class="arrow"></b></li>
						<%
							}
						%>
						<%
							if (quanxian.contains("权限管理,")) {
						%>
						<li <%=style%>><a href="javascript:void"
							data-href="quanxian.jsp"> <i
								class="menu-icon fa fa-caret-right"></i> 管理权限设置  
						</a> <b class="arrow"></b></li>
						<%
							}
						%>
						<%
							if (quanxian.contains("设置,")) {
						%>
						<li <%=style%>><a href="javascript:void"
							data-href="sys_dict.jsp"> <i
								class="menu-icon fa fa-caret-right"></i> 设置
						</a> <b class="arrow"></b></li>
						<%
							}
						%>
						<%-- <%
							if (quanxian.contains("留言板,")) {
						%>
						<li <%=style%>><a href="javascript:void"
							data-href="member-board.jsp"> <i
								class="menu-icon fa fa-caret-right"></i> 留言板
						</a> <b class="arrow"></b></li>
						<%
							}
						%> --%>
						
						<li <%=style%>><a href="<%=basePath%>ex/quit.html"><i
								class="menu-icon fa fa-caret-right"></i>退出
						</a> <b class="arrow"></b></li>
					</ul></li>
			</ul>
			<!-- / 左侧 展开  菜单 -->
			<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
				<i id="sidebar-toggle-icon"
					class="ace-icon fa fa-angle-double-left ace-save-state"
					data-icon1="ace-icon fa fa-angle-double-left"
					data-icon2="ace-icon fa fa-angle-double-right"></i>
			</div>
		</div>
		<!-- / 下右区 -->
		<div class="main-content">
			<!-- / 弹出的主题设置-->
			<div class="ace-settings-container" id="ace-settings-container">
				<div class="btn btn-app btn-xs btn-warning ace-settings-btn"
					id="ace-settings-btn">
					<i class="ace-icon fa fa-cog bigger-110"></i>
				</div>
				<div class="ace-settings-box clearfix" id="ace-settings-box">
					<div class="pull-left width-50">
						<div class="ace-settings-item">
							<div class="pull-left">
								<select id="skin-colorpicker" class="hide">
									<option data-skin="no-skin" value="#438EB9">#438EB9</option>
									<option data-skin="skin-1" value="#222A2D">#222A2D</option>
									<option data-skin="skin-2" value="#C6487E">#C6487E</option>
									<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
								</select>
							</div>
							<span>&nbsp; Choose Skin</span>
						</div>
						<div class="ace-settings-item">
							<input type="checkbox" class="ace ace-checkbox-2 ace-save-state"
								id="ace-settings-add-container" autocomplete="off" /> <label
								class="lbl" for="ace-settings-add-container"> 紧凑模式 </label>
						</div>
					</div>
					<div class="pull-left width-50">
						<!--  <div class="ace-settings-item">
       <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-hover"
        autocomplete="off" />
       <label class="lbl" for="ace-settings-hover"> 子菜单弹出|展开</label>
      </div> -->
						<div class="ace-settings-item">
							<input type="checkbox" class="ace ace-checkbox-2"
								id="ace-settings-compact" autocomplete="off" /> <label
								class="lbl" for="ace-settings-compact"> 左侧菜单缩|放</label>
						</div>
						<div class="ace-settings-item">
							<input type="checkbox" class="ace ace-checkbox-2"
								id="ace-settings-highlight" autocomplete="off" /> <label
								class="lbl" for="ace-settings-highlight"> 左侧菜单栏箭头凹|凸</label>
						</div>
					</div>
					<!-- /.pull-left -->
				</div>
				<!-- /.ace-settings-box -->
			</div>
			<!-- / 紧接右侧内容 -->